package com.ashin.entity;

import com.ashin.mapper.AccountI18NMapper;
import com.ashin.plugin.TranslateBusinessId;
import com.ashin.plugin.TranslateClass;
import com.ashin.plugin.TranslateField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TranslateClass(tableName = "account_i18n",type = AccountI18NMapper.class)
public class Account {

    @TableId(value = "id", type = IdType.AUTO)
    @TranslateBusinessId
    private Integer id;

    @TranslateField
    private String name;

    private Integer balance;

}
